package SSM.Chat.Config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration // 用于将该文件配置成spring bean 配置文件
//@PropertySource("Druid.properties") // 用于导入.properties
@Import({JdbcConfig.class,MybatisConfig.class})  // 导入写好的bean
@ComponentScan({"SSM.Chat.Service", "SSM.Chat.Dao"})   // 扫描bean,排除掉Controller
@EnableTransactionManagement  // 开启事务
public class SpringConfig {
}
